﻿using Kam.Lagan.Examples.Atm.Contract;
using Kam.Lagan.Examples.Atm.Contract.Model;

namespace Kam.Lagan.Examples.Atm.Model
{
    public class TransactionFactory : ITransactionFactory
    {
        public ITransaction Debit(double amount)
        {
            return new Debit(amount);
        }

        public ITransaction Credit(double amount)
        {
            return new Credit(amount);
        }
    }
}